import request from '@/utils/request'
import qs from 'qs'
export default{
    //查询
    getselect(param){
      return request({
        url:'/registlevel/pageRegistLevel',
        method:'get',
        params:{
          page:param.page,
          limit:param.limit
        }
      })
    },
    //删除
    getdelete(param){
      return request({
        url:'/registlevel/delRegistLevel',
        method:'post',
        data:qs.stringify({
          id:param.id
        })
      })
    },
    //修改
    getupdate(param){
      return request({
        url:'/registlevel/updateRegistLevel',
        method:'post',
        data:{
            id:param.ID,
            registCode:param.RegistCode,
            registName:param.RegistName,
            sequenceNo:param.SequenceNo,
            registFee:param.RegistFee,
            registQuota:param.RegistQuota,
            demark:1,
        }
      })
    },
    //增添
    getadd(param){
      return request({
        url:'/registlevel/addRegistLevel',
        method:'post',
        data:{
            id:0,
            registCode:param.RegistCode,
            registName:param.RegistName,
            sequenceNo:param.SequenceNo,
            registFee:param.RegistFee,
            registQuota: param.RegistQuota,
            delMark: 1,
        }
      })
    }
}
